package org.devocean.groupbuying.service;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import org.devocean.groupbuying.domain.Merchant;

public interface MerchantService {
	
	Merchant getMerchantById(Integer id);

	Merchant addOrUpdateMerchant(Merchant merchant);

	void removeMerchant(Integer id);

	long countMerchants();

	List<Merchant> getAllMerchants();
	
	List<Merchant> getMerchantsEntries(int start,int size);

	List<Merchant> getMerchantsByCriteria(String query, Integer start,
			Integer size);

	long countMerchantsBycriteria(String criteria);

	Map<String, Object> search(String searchText,
			ConcurrentHashMap<String, Object> searchResult);


}
